package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DzbqTagcategoriesMapper;
import com.ruoyi.system.domain.DzbqTagcategories;
import com.ruoyi.system.service.IDzbqTagcategoriesService;

/**
 * 标签分类Service业务层处理
 * 
 * @author tianxingxia
 * @date 2025-02-08
 */
@Service
public class DzbqTagcategoriesServiceImpl implements IDzbqTagcategoriesService 
{
    @Autowired
    private DzbqTagcategoriesMapper dzbqTagcategoriesMapper;

    /**
     * 查询标签分类
     * 
     * @param tagCategoryId 标签分类主键
     * @return 标签分类
     */
    @Override
    public DzbqTagcategories selectDzbqTagcategoriesByTagCategoryId(Long tagCategoryId)
    {
        return dzbqTagcategoriesMapper.selectDzbqTagcategoriesByTagCategoryId(tagCategoryId);
    }

    /**
     * 查询标签分类列表
     * 
     * @param dzbqTagcategories 标签分类
     * @return 标签分类
     */
    @Override
    public List<DzbqTagcategories> selectDzbqTagcategoriesList(DzbqTagcategories dzbqTagcategories)
    {
        return dzbqTagcategoriesMapper.selectDzbqTagcategoriesList(dzbqTagcategories);
    }

    /**
     * 新增标签分类
     * 
     * @param dzbqTagcategories 标签分类
     * @return 结果
     */
    @Override
    public int insertDzbqTagcategories(DzbqTagcategories dzbqTagcategories)
    {
        return dzbqTagcategoriesMapper.insertDzbqTagcategories(dzbqTagcategories);
    }

    /**
     * 修改标签分类
     * 
     * @param dzbqTagcategories 标签分类
     * @return 结果
     */
    @Override
    public int updateDzbqTagcategories(DzbqTagcategories dzbqTagcategories)
    {
        return dzbqTagcategoriesMapper.updateDzbqTagcategories(dzbqTagcategories);
    }

    /**
     * 批量删除标签分类
     * 
     * @param tagCategoryIds 需要删除的标签分类主键
     * @return 结果
     */
    @Override
    public int deleteDzbqTagcategoriesByTagCategoryIds(Long[] tagCategoryIds)
    {
        return dzbqTagcategoriesMapper.deleteDzbqTagcategoriesByTagCategoryIds(tagCategoryIds);
    }

    /**
     * 删除标签分类信息
     * 
     * @param tagCategoryId 标签分类主键
     * @return 结果
     */
    @Override
    public int deleteDzbqTagcategoriesByTagCategoryId(Long tagCategoryId)
    {
        return dzbqTagcategoriesMapper.deleteDzbqTagcategoriesByTagCategoryId(tagCategoryId);
    }
}
